﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian26
{
    public partial class shujiexian10kv : UserControl
    {
        public shujiexian10kv()
        {
            InitializeComponent();
        }
        private void shujiexian10kv_Paint(object sender, PaintEventArgs e)
        {

            Pen a = new Pen(Color.Red, 1);
            e.Graphics.DrawLine(a, x, 0, x, y * 2f);

        }

        private void shujiexian10kv_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            this.Refresh();

        }

        private void shujiexian10kv_Load(object sender, EventArgs e)
        {
            shujiexian10kv_Resize(sender, e);
        }

    }
}